package com.ywq.app.dao;


import java.util.List;
import java.util.Map;

import com.ywq.app.domain.ArtActivity;
import com.ywq.app.domain.ArtActivityMember;
import com.ywq.app.domain.ArtOrders;
import com.ywq.app.domain.Member;
import com.ywq.app.domain.MemberAddress;
import com.ywq.app.domain.MemberBank;
import com.ywq.app.domain.MemberHas;
import com.ywq.app.domain.MemberHobby;
import com.ywq.app.domain.MemberSecurity;
import com.ywq.common.exception.AppBusinessException;


public interface MemberDao {
	 /**
	  * 
	  * @param coolskMember
	  * @throws AppBusinessException
	  */
	public void insert(Member member) throws AppBusinessException;
	 /**
	  * 
	  * @param coolskMember
	  * @throws AppBusinessException
	  */
	public void update(Member member)throws AppBusinessException;
	/**
	 * 
	 * @param map
	 * @return
	 * @throws AppBusinessException
	 */
	public Member getMemberByMap(Map<String, Object> map) throws AppBusinessException;
	
	public List<ArtOrders> getOrdersListByMemberId(Map<String, Object> map) throws AppBusinessException;
	
	public int getOrdersByIdCount(Map<String, Object> map)throws AppBusinessException;
	
	public int getActivityByIdCount(Map<String, Object> map)throws AppBusinessException;
	
	public List<ArtActivityMember> getActivityByMemberId(Map<String, Object> map) throws AppBusinessException ;
	
	public void insertMemberHas(MemberHas memberHas)throws AppBusinessException;
	
	 public void deleteMemberHas(Map<String, Object> map) throws AppBusinessException;
	 
	 public void noJoinActivity(Map<String, Object> map) throws AppBusinessException;
	 
	 public void insertMemberBank(MemberBank memberBank)throws AppBusinessException;
	 
	 public void deleteMemberBank(String bankId)throws AppBusinessException;
	 
	 public void updateBankDefault(MemberBank memberBank)throws AppBusinessException ;
	 
	 public void noAllBankDefault(String  memberId)throws AppBusinessException;
	 
	 public List<MemberBank> getBankListByMemberId(String memberId) throws AppBusinessException;
	 
	 public void insertMemberAddress(MemberAddress memberAddress)throws AppBusinessException;
	 
	 public List<MemberAddress> getAddressListByMemberId(String memberId) throws AppBusinessException;
	 
	 public void updateMemberAddress(MemberAddress memberAddress)throws AppBusinessException;
	 
	 public MemberAddress getAddressByaId(String id) throws AppBusinessException;
	 
	 public ArtOrders getOrdersById(String id) throws AppBusinessException;
	 
	 public void updateOrders(Map<String, Object> map)throws AppBusinessException;
	 
	 public List<MemberHas> getHasList(Map<String, Object> map) throws AppBusinessException;
	 
	 public List<Member> getMemberMode(Map<String, Object> map) throws AppBusinessException;
	 
	 public int getMemberModeCount(Map<String, Object> map)throws AppBusinessException;
	 
	 public void insertMemberHobby(MemberHobby memberHobby)throws AppBusinessException;
	 
	 public void deleteMemberHobby(String memberId)throws AppBusinessException;
	 
	 public List<MemberHobby> getHobbyListByMemberId(String memberId) throws AppBusinessException;
	 
	 public void deleteComment(String commentId)throws AppBusinessException;
	 
	 public void payAlipaySuc(Map<String, Object> map)throws AppBusinessException ;
	 
	 public int getCountThity(String memberId)throws AppBusinessException;
	 
	 public void insertMemberSecurity(MemberSecurity memberSecurity)throws AppBusinessException;
	 
	 public List<MemberSecurity> getMemberSecurity (Map<String, Object> map) throws AppBusinessException;
	 
	 public int getMemberSecurityCount(Map<String, Object> map)throws AppBusinessException ;
	 
	 public MemberSecurity getMemberSecurityById(Map<String, Object> map) throws AppBusinessException;
	 
	 public void updateResetAccount(Map<String, Object> map)throws AppBusinessException;
	
	
	
}
